package com.xydtech.ecard.custgroup.mapper;

import com.xydtech.ecard.custgroup.domain.EcardApiCustomerOrganizeVisit;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 电子名片社团组织拜访记录Mapper接口
 *
 * @author yuzhiguo
 * @date 2024-11-29 上午11:24
 */
public interface EcardApiCustomerOrganizeVisitMapper {

    /**
     * 查询电子名片社团组织拜访记录列表
     * @param ecardCustomerOrganizeVisit
     * @return
     */
    List<EcardApiCustomerOrganizeVisit> getOrganizeVisitList(EcardApiCustomerOrganizeVisit ecardCustomerOrganizeVisit);

    /**
     * 查询电子名片社团组织拜访记录
     *
     * @param id
     * @return
     */
    EcardApiCustomerOrganizeVisit selectEcardCustomerOrganizeVisitById(@Param("id") Long id);

    /**
     * 根据社团组织ID查询最近一次拜访时间
     *
     * @param organizeId
     * @return
     */
    String getOrganizeLastVisitTime(@Param("organizeId") Long organizeId);

    /**
     * 保存社团组织拜访信息
     * @param ecardCustomerOrganizeVisit
     * @return
     */
    int insertEcardCustomerOrganizeVisit(EcardApiCustomerOrganizeVisit ecardCustomerOrganizeVisit);

    /**
     * 查询所有的拜访记录
     * @param ecardApiCustomerOrganizeVisit
     * @return
     */
    List<EcardApiCustomerOrganizeVisit> getAllVisitList(EcardApiCustomerOrganizeVisit ecardApiCustomerOrganizeVisit);
}
